package com.mhc.suzuki.service;

import com.mhc.haval.security.model.User;
import com.mhc.suzuki.exception.SuzukiCommonException;
import com.mhc.suzuki.vo.ModifyInfoVO;
import com.mhc.suzuki.bo.SubmitTaskBO;
import com.mhc.suzuki.vo.OrderAuditApplyVO;

import java.util.List;

/**
 * Created by HMJ on 2017/8/24.
 */
public interface OrderAuditApplyService {


  /**
   * 创建申请记录
   * @param submitTaskBO
   * @param logedUser
   * @return
   * @throws SuzukiCommonException
   */
  Long addOrderAuditApply(SubmitTaskBO submitTaskBO, User logedUser) throws SuzukiCommonException;

    /**
     * 根据订单号,业务类型,审批结果查询订单审核历史
     *
     * @param orderNO        订单号
     * @param applyType      业务类型:贷款申请,打款申请,资料修改,通融申请
     * @param approvalResult 审批结果,1通过,2不通过,3附条件通过（需要补全资料）
     * @return
     */
    List<OrderAuditApplyVO> queryOrderAuditApplyList(String orderNO, Integer applyType, Integer approvalResult,String roleCode);

    /**
     * 获取审批信息
     *
     * @param orderNO
     * @param applyCode
     * @return
     */
    ModifyInfoVO queryApplyInfo(String orderNO, Integer applyCode);
}
